package com.example.mycarcalling.service;

import com.example.mycarcalling.bean.User;

public interface UserService {

    User login(String account, String password);

    Long register(User user);

    User findUserByTokenValue(String tokenValue);

    User findUserById(Long userId);

    int updateUserInfo(User user);

    int updateLoginTime();

    boolean IsDriver(Long userid);

    String getDriver(Long passengerId);

    User getPassenger(long driverId);

    int changePassword(User updateUser);
}
